package com.rgp.apiboss.feign;

import com.rgp.internalcommon.dto.CarDto;
import com.rgp.internalcommon.dto.DriverUserDto;
import com.rgp.internalcommon.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-16 17:55
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {

    @PostMapping("/users")
    public ResponseResult addDriver(@RequestBody DriverUserDto driverUserDto);

    @PutMapping("/users")
    public ResponseResult updateDriver(@RequestBody DriverUserDto driverUserDto);

    @PostMapping("/car")
    public ResponseResult addCar(@RequestBody CarDto carDto);
}